#include <stdio.h>
#include <string.h>

char bin[1000000]; //n
int i, len;

int main() {
	while (scanf(" %s", bin)!=EOF) {
		len = strlen(bin);

		if (len>65536) continue;
		if (!strcmp(bin, "1") || !strcmp(bin, "10")) continue;

		for (i=1; i<len && bin[i]=='0'; i++);
		
		for (i; i<len; i++)
			printf("%c", bin[i]);

		printf("1\n");	
	}
	return 0;
}
